﻿using LogisticsDAL;
using Model.Models;
using System;
using System.Collections.Generic;
using System.Text;

namespace LogisticsBLL.jhb
{
    public class customerBLL
    {
        private readonly Icustomer dal ;
        public customerBLL(Icustomer dal)
        {
            this.dal = dal;
        }


        public List<Customer> Getcustomer(string card, string cname, string mobile)
        {
           return dal.GetInfo(card, cname, mobile);
        }

        public string update(Customer cs)
        {
            return dal.update(cs);
        }

        public List<Customer> GetAll()
        {
            return dal.getAll();
        }
        public string AddCustomer(Customer cu)
        {
            return dal.AddCustomer(cu);
        }
    }
}
